<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>js的indexOf测试</title>
    <script src="../zujian/han/han.js"></script>
</head>
<body>
<script type="text/javascript">
    var str="<xml>\n" +
        "    <return_code><![CDATA[SUCCESS]]></return_code>\n" +
        "    <return_msg><![CDATA[OK]]></return_msg>\n" +
        "    <appid><![CDATA[wx339431bcf3b07d5a]]></appid>\n" +
        "    <mch_id><![CDATA[1584917401]]></mch_id>\n" +
        "    <nonce_str><![CDATA[dRXPK8TmpjDStObp]]></nonce_str>\n" +
        "    <sign><![CDATA[1AEBC138EA03DB9608BB7304A3F4C6D7]]></sign>\n" +
        "    <result_code><![CDATA[SUCCESS]]></result_code>\n" +
        "    <prepay_id><![CDATA[wx10200724419864c17bbad2491812522600]]></prepay_id>\n" +
        "    <trade_type><![CDATA[JSAPI]]></trade_type>\n" +
        "</xml>";
    hwrite(str.includes("<return_code><![CDATA[SUCCESS]]></return_code>"))
</script>
</body>
</html>